
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!doctype html>
<html lang="zh">
<head>
    <title>编辑体检计划</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var medicalCategory = '${plan.medicalCategory}';
        var planId = '${plan.id}';
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/medicalPlan/edit.js"></script>
</head>
<body>
<div class="form-wrap">
    <form id="plansEditForm" method="post">
        <input type="hidden" id="planId" name="id" value="${plan.id}"/>
        <table cellspacing="0" cellpadding="0" class="watch-table" style="width: 690px">
            <tr>
                <td class="watch-td">批次<span>*</span></td>
                <td colspan="3">
                    <input class="easyui-textbox" type="text" name="batch" style="width: 240px" id="batch" value="${plan.batch}" data-options="required:true"><br>
                    <label style="color: red" >输入格式：年(YYYY)+月(MM)+批次(01-99)</label>
                </td>
                <td colspan="2" class="watch-td">年度<span>*</span></td>
                <td colspan="2" class="watch-tdA">
                    <input id="yearAnnual"  class="easyui-textbox"  name="yearAnnual" editable="false" style="width: 240px;" value="${plan.yearAnnual==null?"":plan.yearAnnual}">
                </td>
            </tr>
            <tr>
                <td class="watch-td">体检类别<span>*</span></td>
                <td colspan="3">
                    <select class="easyui-combobox" name="medicalCategory" id="medicalCategory" style="width: 240px"
                            data-options="required:true,editable:false,selectOnNavigation:true">
                    </select>
                </td>
                <td colspan="2" class="watch-td">体检人数<span>*</span></td>
                <td colspan="2" class="watch-tdA">
                    <input class="easyui-numberspinner formInput" value="${plan.phyNumber}"  name="phyNumber" style="width: 240px" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td class="watch-td">开始日期<span>*</span></td>
                <td colspan="3">
                    <input type="text" name="startDate" class="easyui-datebox" value="${plan.startDate}" style="width: 240px" data-options="required:true,editable:false"/>
                </td>
                <td colspan="2" class="watch-td">结束日期<span>*</span></td>
                <td colspan="2" class="watch-tdA">
                    <input type="text" name="endDate" class="easyui-datebox" value="${plan.endDate}" style="width: 240px" data-options="required:true,editable:false"/>
                </td>
            </tr>
            <tr>
                <td class="watch-td">备注</td>
                <td colspan="7" class="watch-tdA">
                    <input class="easyui-textbox" type="text" name="remarks" style="height: 100px;width: 586px" value="${plan.remarks==null?"":plan.remarks}" data-options="multiline:true">
                </td>
            </tr>
        </table>
    </form>
    <div class="form-button">
        <a href="javascript:void(0)" onclick="submitForm()" class="easyui-linkbutton"
           data-options="iconCls:'fa fa-save fa-lg'">保存</a>
    </div>
</div>
</body>
</html>
